#ifndef __IJPEGE_COMMON_H__
#define __IJPEGE_COMMON_H__

#include <ijpege.h>
#include <ijpege_frame.h>
#include <ijpege_iicodec.h>
#include <ijpege_set.h>
#include <ijpege_reconfig.h>
struct ijpege {
	ijpege_param_t	param;
	ijpege_frame_t	*fenc;
	ijpege_frame_t	encframe;
	uint8_t			*fbs;
	ijpege_icodec_t    *icodec;
	ijpege_vbinfo_t	*vbinfo;
	ijpege_icodec_io_t icodec_io;
	struct {
		ijpege_nal_t	nal;
		int         i_bitstream;    /* size of p_bitstream */
		uint8_t     *p_bitstream;   /* will hold data for all nal */
	} out;
	c_mc_function_t mc;
    ijpege_reconfig_t reconfig;
};

extern void ijpege_log(ijpege_t *h, int i_level, const char *psz_fmt, ... );
extern int ijpege_reconfig(ijpege_t *h);
#endif
